package sy.db.mysql.dao;

import java.util.List;
import java.util.Map;

import sy.db.mysql.model.TroleTresource;
/**
 *  @author zxl
 */
public interface TroleTresourceDao {
    int deleteByPrimaryKey(String id);

    int insert(TroleTresource record);

    int insertSelective(TroleTresource record);

    TroleTresource selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TroleTresource record);

    int updateByPrimaryKey(TroleTresource record);
	
	List<TroleTresource> findbyByGrid(Map map);
	
	/**
	 * 根据角色id删除所有角色权限
	 * @param id
	 * @return
	 */
	int deleteByRoleID(String id );
}


